<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--左侧导航-->
<aside class="lyear-layout-sidebar">

    <div id="logo" class="sidebar-header" style="height: 64px">
        <a href="${ pageContext.request.contextPath}/"><h4 style="line-height: 60px">个性化习题管理系统</h4></a>
    </div>
    <div class="lyear-layout-sidebar-scroll">

        <nav class="sidebar-main">
            <ul class="nav nav-drawer">
                <li class="nav-item nav__hello"> <a href="${ pageContext.request.contextPath}/hello"><i class="mdi mdi-home"></i> 首页</a> </li>
<c:if test="${ sessionScope.user != null}">
                <li class="nav-item nav__personal"> <a href="${ pageContext.request.contextPath}/${ sessionScope.user.role}/edit?id=${ sessionScope.user.id}"><i class="mdi mdi-account"></i> 个人中心</a> </li>
</c:if>
                <c:if test="${ sessionScope.user.role.equalsIgnoreCase('')  }">
                    <li class="nav-item nav_admin"> <a href="${pageContext.request.contextPath}/admin/list"><i class="mdi mdi-format-align-justify"></i>管理员</a> </li>
                </c:if>
                <c:if test="${ sessionScope.user.role.equalsIgnoreCase('Admin')  }">
                    <li class="nav-item nav_user"> <a href="${pageContext.request.contextPath}/user/list"><i class="mdi mdi-format-align-justify"></i>用户</a> </li>
                </c:if>
                <c:if test="${ sessionScope.user.role.equalsIgnoreCase('Admin') ||   sessionScope.user.role.equalsIgnoreCase('User')  }">
                    <li class="nav-item nav_questionBank"> <a href="${pageContext.request.contextPath}/questionBank/list"><i class="mdi mdi-format-align-justify"></i>我的题库</a> </li>
                </c:if>
                <c:if test="${ sessionScope.user.role.equalsIgnoreCase('Admin') ||   sessionScope.user.role.equalsIgnoreCase('User')  }">
                    <li class="nav-item nav_notice"> <a href="${pageContext.request.contextPath}/notice/list"><i class="mdi mdi-format-align-justify"></i>系统公告</a> </li>
                </c:if>

                <%--<li class="nav-item nav-item-has-subnav open">
                    <a href="javascript:void(0)"><i class="mdi mdi-file-outline"></i>父菜单</a>
                    <ul class="nav nav-subnav">
                        <li> <a><i class="mdi"></i>子菜单</a> </li>
                    </ul>
                </li>--%>

                            </ul>
        </nav>

    </div>

</aside>
<!--End 左侧导航-->


